<?php
/* 
 * ebiz front
 * 
 * register View
 * 
 * @author allen
 * 
 */
?>
<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Transitional//EN' 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd'>
<html xmlns='http://www.w3.org/1999/xhtml'>
    <head>
        <meta content='text/html; charset=utf-8' http-equiv='Content-Type' />
        <title>阿基米米注册  - 阿基米米网上商城</title>
        <script type='text/javascript' language='javascript' src='//<?php echo ConfigConstants::$iConstants.".".DOMAIN; ?>/n/javascript/lib/jquery.js'></script>
        <script type='text/javascript' language='javascript' src='//<?php echo ConfigConstants::$iConstants.".".DOMAIN; ?>/n/javascript/frontend.js'></script>
        <script type='text/javascript' language='javascript' src='//<?php echo ConfigConstants::$iConstants.".".DOMAIN; ?>/t/<?php echo $config['template_name']; ?>/javascript/akimimi.js'></script>
        <link href='//<?php echo ConfigConstants::$iConstants.".".DOMAIN; ?>/t/<?php echo $config ['template_name']; ?>/css/register_login.css' rel='stylesheet' type='text/css' />
        <link href='//<?php echo ConfigConstants::$iConstants.".".DOMAIN; ?>/t/<?php echo $config ['template_name']; ?>/css/headerAndFooter.css' rel='stylesheet' type='text/css' />
        <link rel="shortcut icon" href="<?php echo ConfigConstants::getTImagePath();?>/favicon.ico"></link>
    </head>
    <body>
        <?php 
            require_once '../app/views/HeaderView.php';
            echo HeaderView::getCommonHeaderView();
        ?>
        <div class="reg_border">
           <input type="hidden" id="errorNameEmpty" value="<?php echo MEMBERNAMEEMPTY; ?>" />
           <input type="hidden" id="errorNameExist" value="<?php echo MEMBERNAMEEXIST; ?>" />
           <input type="hidden" id="errorNameError" value="<?php echo MEMBERNAMEERROR; ?>" />
           <input type="hidden" id="errorNameRight" value="<?php echo MEMBERNAMERIGHT; ?>" />
        
           <input type="hidden" id="errorEmailEmpty" value="<?php echo EMAILEMPTY; ?>" />
           <input type="hidden" id="errorEmailExist" value="<?php echo EMAILEXIST; ?>" />
           <input type="hidden" id="errorEmailError" value="<?php echo EMAILERROR; ?>" />
           <input type="hidden" id="errorEmailRight" value="<?php echo EMAILRIGHT; ?>" />
        
           <input type="hidden" id="errorPasswordEmpty" value="<?php echo PASSWORDEMPTY; ?>" />
           <input type="hidden" id="errorPasswordError" value="<?php echo PASSWORDERROR; ?>" />
           <input type="hidden" id="errorPasswordRight" value="<?php echo PASSWORDRIGHT; ?>" />
        
           <input type="hidden" id="errorRepasswordEmpty" value="<?php echo REPEATPASSWORDEMPTY; ?>" />
           <input type="hidden" id="errorRepasswordError" value="<?php echo REPEATPASSWORDERROR; ?>" />
           <input type="hidden" id="errorRepasswordRight" value="<?php echo REPEATPASSWORDRIGHT; ?>" />
        
           <input type="hidden" id="errorCaptchaEmpty" value="<?php echo CAPTCHAEMPTY; ?>" />
           <input type="hidden" id="errorCaptchaError" value="<?php echo CAPTCHAERROR; ?>" />
           <input type="hidden" id="errorCaptchaRight" value="<?php echo CAPTCHARIGHT; ?>" />
           
           <input type="hidden" id="errorHighSchoolEmpty" value="<?php echo PLSELECTYOURHIGHSCHOOL; ?>" />
           <input type="hidden" id="errorNoAgreement" value="<?php echo PLREADAGREEMENT; ?>" />
           
           <div id="navigation"><?php echo YOURCURPOSITION.COLON;?><span><?php echo SUBMITREGIST;?></span></div>
           <div id="register_title">
               <div class="reg_title">
                   <div class="title"><p><?php echo USERREGISTER;?></p><?php echo WELCOMEINFO; ?></div>
               </div>
           </div>
           <div class="register_box">
               <form action="/o/register" method="post" id="regForm" onsubmit="javascript:return Register.regSubmit();">
	               <div class="register_boxc"><?php echo PLWRITEYOURUSERNAME;?></div>
                   <div class="register_row">
                       <ul>
                           <li class="register_boxlit"><?php echo USERNAME.COLON;?></li>
                           <li class="register_boxlic" style="width:80%;">
                               <input type="text" class="input1" id="username" name="username" onblur="javascript:Register.validateUserName();" />
                               <span id="errorUserName"><?php echo MEMBERNAMEINFO; ?></span>
                           </li>
                       </ul>
                   </div>
                   <div class="register_boxc"><?php echo PLSELECTUSERTYPE;?></div>
	               <div class="register_boxlidivt"><?php echo USERTYPE.COLON;?></div>
                   <div class="register_boxlidivc">
                       <img src="<?php echo ConfigConstants::getTImagePath().'/r_user01.gif';?>" alt=""/>
                       <img src="<?php echo ConfigConstants::getTImagePath().'/r_user02.gif';?>" alt="" /><br />
                       <span><input name="schoolRadio" id="school" type="radio" value="1" onclick="javascript:Register.checkSchool();" checked="checked" /><?php echo HIGHSCHOOLUSER; ?></span>
                       <span><input name="schoolRadio" id="no_school" type="radio" value="2" onclick="javascript:Register.checkSchool();"/><?php echo NOTHIGHSCHOOLUSER;?></span>
                       <input type="hidden" id="isSchool" name="isSchool" value="1" />
                   </div> 
                   <div class="register_row" id="select_school"> 
                       <ul>
                           <li class="register_boxlit"><?php echo BEUNIVERSITY.COLON;?></li>
                           <li class="register_boxlic">
                               <input type="text" class="input1" id="campusesName" name="campusesName" type="text" onclick="javascript:CheckOut.showAllCampuses();" onblur="javascript:Register.validateHighSchool();"  readonly="readonly" />
                               <span id="errorSchool"><?php echo PLSELECTUNIVERSITY;?></span>
                               <input type="hidden" id="campusesId" name="campusesId" />
                           </li>
                       </ul>
                   </div>
                   <div class="register_boxc"><?php echo PLADDSAFESETTING;?></div>
                   <div class="register_row">
                       <ul>
                           <li class="register_boxlit"><?php echo EMAILLBL.COLON;?></li>
                           <li class="register_boxlic">
                               <input type="text" class="input1" id="email" name="email" onblur="javascript:Register.validateEmail();" />
                               <span id="errorEmail"><?php echo EMAILINFO; ?></span>
                           </li>
                       </ul>
                   </div>
                   
                   <div class="register_row">
                       <ul>
                           <li class="register_boxlit"><?php echo PASSWORD.COLON; ?></li>
                           <li class="register_boxlic" style="width:80%;" >
                               <input type="password" class="input1" id="password" name="password" onblur="javascript:Register.validatePassword();"  />
                               <span id="errorPassword"><?php echo PASSWORDINFO; ?></span>
                           </li>
                       </ul>
                   </div>
                   
                   <div class="register_row">
                      <ul>
                          <li class="register_boxlit"><?php echo REPEATPASSWORD.COLON; ?></li>
                          <li class="register_boxlic">
                              <input  type="password" class="input1" id="repassword" name="repassword" onblur="javascript:Register.validateRepassword();" />
                              <span id="errorRepassword"><?php echo REPEATPASSWORDINFO; ?></span>
                          </li>
                     </ul>
                  </div>
                  
                  <div class="register_row">
                      <ul>
                          <li class="register_boxlit">&nbsp;</li>
                          <li class="register_boxlic" style="margin-left:5px;">
                             <span id="captchaImg" style="float:left;"><?php echo $captchaImg; ?></span><span style="float:left;" ><a href="javascript:void(0);" onclick="Register.changeCaptcha();"><?php echo CAPTCHACHANGE; ?></a></span>
                          </li>
                     </ul>
                  </div>
                  
                  <div class="register_row" style="margin-top:5px;">
                      <ul>
                          <li class="register_boxlit"><?php echo CAPTCHA.COLON; ?></li>
                          <li class="register_boxlic">
                              <input type="text" class="input1"  id="captcha" name="captcha" onblur="javascript:Register.validateCaptcha();" />
                              <span id="errorCaptcha"></span>
                          </li>
                     </ul>
                  </div>
                  <div class="r_box02">
                      <input name="agreement" id="agreement" type="checkbox" value="" checked="checked" /><?php echo IALREADYREADAGREE;?><a target="_blank" style="text-decoration: none;cursor:pointer;" href="/u/agreement" ><?php echo AKIMIMIAGREEMENT?></a>
                      <div id="errorAgreement"></div>
                  </div>
                  <div class="r_box02">
                      <input type="image" src="<?php echo ConfigConstants::getTImagePath().'/r_btn.gif';?>" onclick="javascript:Register.regSubmit();"  />
                  </div>
               </form>
               <div style="float:right; margin-top:-630px;">
            	<img src="<?php echo ConfigConstants::getTImagePath().'/r_bg1.gif'; ?>" usemap="#photoMap" border="0" alt="" />
            	<map name="photoMap" id="photoMap">
					<area shape="rect" coords="14,483,105,503" href="/u/help?type=buyprocess" />
                	<area shape="rect" coords="14,505,105,524" href="/u/help?type=mark" />
				</map>
             </div> 
           </div>
           <div class="bottom_img"><img src="<?php echo ConfigConstants::getTImagePath().'/login_14.gif';?>" alt=""  /></div>
      </div>
      <?php 
         require_once '../app/views/FooterView.php';
         echo FooterView::getCommonFooterView();
     ?>   
       <!-- all school info start -->
        
        <div class="allSchool" id="allSchool" style="display:none;">
            <div id="city" class="city">
            <?php 
                for($i = 0; $i < count($province); $i++) {
                	if($i==2){
                		$style='style="background-color: rgb(255, 255, 255); float:left; margin:5px 3px 0 2px; overflow:hidden; width:auto; height:auto;"';
                	} else {
                		$style='style="background-color: rgb(255, 255, 255);"';
                	}
            ?>
                <span id="title_<?php echo $i;?>" <?php echo $style;?> ><a href="javascript:CheckOut.showArea1('<?php echo $province[$i]["id"]; ?>',1)"><?php echo $province[$i]["title"]; ?></a></span>
            <?php } ?>
            </div>
            <div id="area" class="area">
            
                <ul id="allCampuses">
                    <?php 
                        foreach ($campuses as $name) {
                    ?>
                    <li><a href="javascript:CheckOut.viewArea('<?php echo $name["area_name"];?>', '<?php echo $name["id"];?>');"><?php echo $name["area_name"];?></a></li>
                    <?php 
                        }
                    ?>
                </ul>
            
            </div>
            <div style="margin-left:400px;">
              <input name="button" type="button" value="关闭" onClick="CheckOut.closeBtn();" />
            </div>
        </div>
        
        <!-- all school info end --> 
   
    </body>
</html>

